/*
** Lua binding: 3ddcs
** Generated automatically by tolua++-1.0.92 on Thu Jun  3 13:12:27 2010.
*/

#ifndef __cplusplus
#include "stdlib.h"
#endif
#include "string.h"

#include "tolua++.h"

/* Exported function */
TOLUA_API int  tolua_3ddcs_open (lua_State* tolua_S);

#include "3dd_lua.h"

/* function to register type */
static void tolua_reg_types (lua_State* tolua_S)
{
}

/* get function: G3CS_Display_Grid */
#ifndef TOLUA_DISABLE_tolua_get_Display_Grid
static int tolua_get_Display_Grid(lua_State* tolua_S)
{
  tolua_pushboolean(tolua_S,(bool)G3CS_Display_Grid);
 return 1;
}
#endif //#ifndef TOLUA_DISABLE

/* set function: G3CS_Display_Grid */
#ifndef TOLUA_DISABLE_tolua_set_Display_Grid
static int tolua_set_Display_Grid(lua_State* tolua_S)
{
#ifndef TOLUA_RELEASE
  tolua_Error tolua_err;
  if (!tolua_isboolean(tolua_S,2,0,&tolua_err))
   tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
#endif
  G3CS_Display_Grid = ((bool)  tolua_toboolean(tolua_S,2,0))
;
 return 0;
}
#endif //#ifndef TOLUA_DISABLE

/* get function: G3CS_DisplayAxis */
#ifndef TOLUA_DISABLE_tolua_get_Display_Axis
static int tolua_get_Display_Axis(lua_State* tolua_S)
{
  tolua_pushboolean(tolua_S,(bool)G3CS_DisplayAxis);
 return 1;
}
#endif //#ifndef TOLUA_DISABLE

/* set function: G3CS_DisplayAxis */
#ifndef TOLUA_DISABLE_tolua_set_Display_Axis
static int tolua_set_Display_Axis(lua_State* tolua_S)
{
#ifndef TOLUA_RELEASE
  tolua_Error tolua_err;
  if (!tolua_isboolean(tolua_S,2,0,&tolua_err))
   tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
#endif
  G3CS_DisplayAxis = ((bool)  tolua_toboolean(tolua_S,2,0))
;
 return 0;
}
#endif //#ifndef TOLUA_DISABLE

/* get function: G3CS_ColDepth */
#ifndef TOLUA_DISABLE_tolua_get_ColorDepth
static int tolua_get_ColorDepth(lua_State* tolua_S)
{
  tolua_pushnumber(tolua_S,(lua_Number)G3CS_ColDepth);
 return 1;
}
#endif //#ifndef TOLUA_DISABLE

/* set function: G3CS_ColDepth */
#ifndef TOLUA_DISABLE_tolua_set_ColorDepth
static int tolua_set_ColorDepth(lua_State* tolua_S)
{
#ifndef TOLUA_RELEASE
  tolua_Error tolua_err;
  if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
   tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
#endif
  G3CS_ColDepth = ((int)  tolua_tonumber(tolua_S,2,0))
;
 return 0;
}
#endif //#ifndef TOLUA_DISABLE

/* get function: G3CS_FullScreen */
#ifndef TOLUA_DISABLE_tolua_get_FullScreen
static int tolua_get_FullScreen(lua_State* tolua_S)
{
  tolua_pushboolean(tolua_S,(bool)G3CS_FullScreen);
 return 1;
}
#endif //#ifndef TOLUA_DISABLE

/* set function: G3CS_FullScreen */
#ifndef TOLUA_DISABLE_tolua_set_FullScreen
static int tolua_set_FullScreen(lua_State* tolua_S)
{
#ifndef TOLUA_RELEASE
  tolua_Error tolua_err;
  if (!tolua_isboolean(tolua_S,2,0,&tolua_err))
   tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
#endif
  G3CS_FullScreen = ((bool)  tolua_toboolean(tolua_S,2,0))
;
 return 0;
}
#endif //#ifndef TOLUA_DISABLE

/* get function: G3CS_SplineWidth */
#ifndef TOLUA_DISABLE_tolua_get_SplineWidth
static int tolua_get_SplineWidth(lua_State* tolua_S)
{
  tolua_pushnumber(tolua_S,(lua_Number)G3CS_SplineWidth);
 return 1;
}
#endif //#ifndef TOLUA_DISABLE

/* set function: G3CS_SplineWidth */
#ifndef TOLUA_DISABLE_tolua_set_SplineWidth
static int tolua_set_SplineWidth(lua_State* tolua_S)
{
#ifndef TOLUA_RELEASE
  tolua_Error tolua_err;
  if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
   tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
#endif
  G3CS_SplineWidth = ((float)  tolua_tonumber(tolua_S,2,0))
;
 return 0;
}
#endif //#ifndef TOLUA_DISABLE

/* get function: G3CS_SplineDetail */
#ifndef TOLUA_DISABLE_tolua_get_SplineDetail
static int tolua_get_SplineDetail(lua_State* tolua_S)
{
  tolua_pushnumber(tolua_S,(lua_Number)G3CS_SplineDetail);
 return 1;
}
#endif //#ifndef TOLUA_DISABLE

/* set function: G3CS_SplineDetail */
#ifndef TOLUA_DISABLE_tolua_set_SplineDetail
static int tolua_set_SplineDetail(lua_State* tolua_S)
{
#ifndef TOLUA_RELEASE
  tolua_Error tolua_err;
  if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
   tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
#endif
  G3CS_SplineDetail = ((float)  tolua_tonumber(tolua_S,2,0))
;
 return 0;
}
#endif //#ifndef TOLUA_DISABLE

/* get function: G3CS_Subdivisions */
#ifndef TOLUA_DISABLE_tolua_get_Subdivisions
static int tolua_get_Subdivisions(lua_State* tolua_S)
{
  tolua_pushnumber(tolua_S,(lua_Number)G3CS_Subdivisions);
 return 1;
}
#endif //#ifndef TOLUA_DISABLE

/* set function: G3CS_Subdivisions */
#ifndef TOLUA_DISABLE_tolua_set_Subdivisions
static int tolua_set_Subdivisions(lua_State* tolua_S)
{
#ifndef TOLUA_RELEASE
  tolua_Error tolua_err;
  if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
   tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
#endif
  G3CS_Subdivisions = ((int)  tolua_tonumber(tolua_S,2,0))
;
 return 0;
}
#endif //#ifndef TOLUA_DISABLE

/* get function: G3CS_3DM_PlanarSensitivity */
#ifndef TOLUA_DISABLE_tolua_get_Mouse3D_XYSensitivity
static int tolua_get_Mouse3D_XYSensitivity(lua_State* tolua_S)
{
  tolua_pushnumber(tolua_S,(lua_Number)G3CS_3DM_PlanarSensitivity);
 return 1;
}
#endif //#ifndef TOLUA_DISABLE

/* set function: G3CS_3DM_PlanarSensitivity */
#ifndef TOLUA_DISABLE_tolua_set_Mouse3D_XYSensitivity
static int tolua_set_Mouse3D_XYSensitivity(lua_State* tolua_S)
{
#ifndef TOLUA_RELEASE
  tolua_Error tolua_err;
  if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
   tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
#endif
  G3CS_3DM_PlanarSensitivity = ((float)  tolua_tonumber(tolua_S,2,0))
;
 return 0;
}
#endif //#ifndef TOLUA_DISABLE

/* get function: G3CS_3DM_DepthSensitivity */
#ifndef TOLUA_DISABLE_tolua_get_Mouse3D_ZSensitivity
static int tolua_get_Mouse3D_ZSensitivity(lua_State* tolua_S)
{
  tolua_pushnumber(tolua_S,(lua_Number)G3CS_3DM_DepthSensitivity);
 return 1;
}
#endif //#ifndef TOLUA_DISABLE

/* set function: G3CS_3DM_DepthSensitivity */
#ifndef TOLUA_DISABLE_tolua_set_Mouse3D_ZSensitivity
static int tolua_set_Mouse3D_ZSensitivity(lua_State* tolua_S)
{
#ifndef TOLUA_RELEASE
  tolua_Error tolua_err;
  if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
   tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
#endif
  G3CS_3DM_DepthSensitivity = ((float)  tolua_tonumber(tolua_S,2,0))
;
 return 0;
}
#endif //#ifndef TOLUA_DISABLE

/* get function: G3CS_3DM_RotateSensitivity */
#ifndef TOLUA_DISABLE_tolua_get_Mouse3D_RotateSensitivity
static int tolua_get_Mouse3D_RotateSensitivity(lua_State* tolua_S)
{
  tolua_pushnumber(tolua_S,(lua_Number)G3CS_3DM_RotateSensitivity);
 return 1;
}
#endif //#ifndef TOLUA_DISABLE

/* set function: G3CS_3DM_RotateSensitivity */
#ifndef TOLUA_DISABLE_tolua_set_Mouse3D_RotateSensitivity
static int tolua_set_Mouse3D_RotateSensitivity(lua_State* tolua_S)
{
#ifndef TOLUA_RELEASE
  tolua_Error tolua_err;
  if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
   tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
#endif
  G3CS_3DM_RotateSensitivity = ((float)  tolua_tonumber(tolua_S,2,0))
;
 return 0;
}
#endif //#ifndef TOLUA_DISABLE

/* get function: G3CS_WII_NunchukRotateSensitivity */
#ifndef TOLUA_DISABLE_tolua_get_Wiimote_NunchukRotateSensitivity
static int tolua_get_Wiimote_NunchukRotateSensitivity(lua_State* tolua_S)
{
  tolua_pushnumber(tolua_S,(lua_Number)G3CS_WII_NunchukRotateSensitivity);
 return 1;
}
#endif //#ifndef TOLUA_DISABLE

/* set function: G3CS_WII_NunchukRotateSensitivity */
#ifndef TOLUA_DISABLE_tolua_set_Wiimote_NunchukRotateSensitivity
static int tolua_set_Wiimote_NunchukRotateSensitivity(lua_State* tolua_S)
{
#ifndef TOLUA_RELEASE
  tolua_Error tolua_err;
  if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
   tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
#endif
  G3CS_WII_NunchukRotateSensitivity = ((float)  tolua_tonumber(tolua_S,2,0))
;
 return 0;
}
#endif //#ifndef TOLUA_DISABLE

/* get function: G3CS_WII_NunchukNoiseLevel */
#ifndef TOLUA_DISABLE_tolua_get_Wiimote_NunchukNoiseLevel
static int tolua_get_Wiimote_NunchukNoiseLevel(lua_State* tolua_S)
{
  tolua_pushnumber(tolua_S,(lua_Number)G3CS_WII_NunchukNoiseLevel);
 return 1;
}
#endif //#ifndef TOLUA_DISABLE

/* set function: G3CS_WII_NunchukNoiseLevel */
#ifndef TOLUA_DISABLE_tolua_set_Wiimote_NunchukNoiseLevel
static int tolua_set_Wiimote_NunchukNoiseLevel(lua_State* tolua_S)
{
#ifndef TOLUA_RELEASE
  tolua_Error tolua_err;
  if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
   tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
#endif
  G3CS_WII_NunchukNoiseLevel = ((float)  tolua_tonumber(tolua_S,2,0))
;
 return 0;
}
#endif //#ifndef TOLUA_DISABLE

/* get function: G3CS_3DM_UseNormalMouse */
#ifndef TOLUA_DISABLE_tolua_get_Mouse3D_UseNormal
static int tolua_get_Mouse3D_UseNormal(lua_State* tolua_S)
{
  tolua_pushboolean(tolua_S,(bool)G3CS_3DM_UseNormalMouse);
 return 1;
}
#endif //#ifndef TOLUA_DISABLE

/* set function: G3CS_3DM_UseNormalMouse */
#ifndef TOLUA_DISABLE_tolua_set_Mouse3D_UseNormal
static int tolua_set_Mouse3D_UseNormal(lua_State* tolua_S)
{
#ifndef TOLUA_RELEASE
  tolua_Error tolua_err;
  if (!tolua_isboolean(tolua_S,2,0,&tolua_err))
   tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
#endif
  G3CS_3DM_UseNormalMouse = ((bool)  tolua_toboolean(tolua_S,2,0))
;
 return 0;
}
#endif //#ifndef TOLUA_DISABLE

/* get function: G3CS_WII_DepthNoiseReduction */
#ifndef TOLUA_DISABLE_tolua_get_Wiimote_DepthNoiseReduction
static int tolua_get_Wiimote_DepthNoiseReduction(lua_State* tolua_S)
{
  tolua_pushnumber(tolua_S,(lua_Number)G3CS_WII_DepthNoiseReduction);
 return 1;
}
#endif //#ifndef TOLUA_DISABLE

/* set function: G3CS_WII_DepthNoiseReduction */
#ifndef TOLUA_DISABLE_tolua_set_Wiimote_DepthNoiseReduction
static int tolua_set_Wiimote_DepthNoiseReduction(lua_State* tolua_S)
{
#ifndef TOLUA_RELEASE
  tolua_Error tolua_err;
  if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
   tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
#endif
  G3CS_WII_DepthNoiseReduction = ((float)  tolua_tonumber(tolua_S,2,0))
;
 return 0;
}
#endif //#ifndef TOLUA_DISABLE

/* get function: G3CS_WII_NoiseFilterIterations */
#ifndef TOLUA_DISABLE_tolua_get_Wiimote_NoiseFilterIterations
static int tolua_get_Wiimote_NoiseFilterIterations(lua_State* tolua_S)
{
  tolua_pushnumber(tolua_S,(lua_Number)G3CS_WII_NoiseFilterIterations);
 return 1;
}
#endif //#ifndef TOLUA_DISABLE

/* set function: G3CS_WII_NoiseFilterIterations */
#ifndef TOLUA_DISABLE_tolua_set_Wiimote_NoiseFilterIterations
static int tolua_set_Wiimote_NoiseFilterIterations(lua_State* tolua_S)
{
#ifndef TOLUA_RELEASE
  tolua_Error tolua_err;
  if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
   tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
#endif
  G3CS_WII_NoiseFilterIterations = ((int)  tolua_tonumber(tolua_S,2,0))
;
 return 0;
}
#endif //#ifndef TOLUA_DISABLE

/* get function: G3CS_WII_IRSensitivity */
#ifndef TOLUA_DISABLE_tolua_get_Wiimote_IRSensitivity
static int tolua_get_Wiimote_IRSensitivity(lua_State* tolua_S)
{
  tolua_pushnumber(tolua_S,(lua_Number)G3CS_WII_IRSensitivity);
 return 1;
}
#endif //#ifndef TOLUA_DISABLE

/* set function: G3CS_WII_IRSensitivity */
#ifndef TOLUA_DISABLE_tolua_set_Wiimote_IRSensitivity
static int tolua_set_Wiimote_IRSensitivity(lua_State* tolua_S)
{
#ifndef TOLUA_RELEASE
  tolua_Error tolua_err;
  if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
   tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
#endif
  G3CS_WII_IRSensitivity = ((int)  tolua_tonumber(tolua_S,2,0))
;
 return 0;
}
#endif //#ifndef TOLUA_DISABLE

/* get function: G3CS_WII_MinDepth */
#ifndef TOLUA_DISABLE_tolua_get_Wiimote_MinDepth
static int tolua_get_Wiimote_MinDepth(lua_State* tolua_S)
{
  tolua_pushnumber(tolua_S,(lua_Number)G3CS_WII_MinDepth);
 return 1;
}
#endif //#ifndef TOLUA_DISABLE

/* set function: G3CS_WII_MinDepth */
#ifndef TOLUA_DISABLE_tolua_set_Wiimote_MinDepth
static int tolua_set_Wiimote_MinDepth(lua_State* tolua_S)
{
#ifndef TOLUA_RELEASE
  tolua_Error tolua_err;
  if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
   tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
#endif
  G3CS_WII_MinDepth = ((float)  tolua_tonumber(tolua_S,2,0))
;
 return 0;
}
#endif //#ifndef TOLUA_DISABLE

/* get function: G3CS_WII_DepthSensitivity */
#ifndef TOLUA_DISABLE_tolua_get_Wiimote_DepthSensitivity
static int tolua_get_Wiimote_DepthSensitivity(lua_State* tolua_S)
{
  tolua_pushnumber(tolua_S,(lua_Number)G3CS_WII_DepthSensitivity);
 return 1;
}
#endif //#ifndef TOLUA_DISABLE

/* set function: G3CS_WII_DepthSensitivity */
#ifndef TOLUA_DISABLE_tolua_set_Wiimote_DepthSensitivity
static int tolua_set_Wiimote_DepthSensitivity(lua_State* tolua_S)
{
#ifndef TOLUA_RELEASE
  tolua_Error tolua_err;
  if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
   tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
#endif
  G3CS_WII_DepthSensitivity = ((float)  tolua_tonumber(tolua_S,2,0))
;
 return 0;
}
#endif //#ifndef TOLUA_DISABLE

/* get function: G3CS_WII_ZoomSensitivity */
#ifndef TOLUA_DISABLE_tolua_get_Wiimote_ZoomSensitivity
static int tolua_get_Wiimote_ZoomSensitivity(lua_State* tolua_S)
{
  tolua_pushnumber(tolua_S,(lua_Number)G3CS_WII_ZoomSensitivity);
 return 1;
}
#endif //#ifndef TOLUA_DISABLE

/* set function: G3CS_WII_ZoomSensitivity */
#ifndef TOLUA_DISABLE_tolua_set_Wiimote_ZoomSensitivity
static int tolua_set_Wiimote_ZoomSensitivity(lua_State* tolua_S)
{
#ifndef TOLUA_RELEASE
  tolua_Error tolua_err;
  if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
   tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
#endif
  G3CS_WII_ZoomSensitivity = ((float)  tolua_tonumber(tolua_S,2,0))
;
 return 0;
}
#endif //#ifndef TOLUA_DISABLE

/* get function: G3CS_Profiling */
#ifndef TOLUA_DISABLE_tolua_get_Profiling
static int tolua_get_Profiling(lua_State* tolua_S)
{
  tolua_pushboolean(tolua_S,(bool)G3CS_Profiling);
 return 1;
}
#endif //#ifndef TOLUA_DISABLE

/* set function: G3CS_Profiling */
#ifndef TOLUA_DISABLE_tolua_set_Profiling
static int tolua_set_Profiling(lua_State* tolua_S)
{
#ifndef TOLUA_RELEASE
  tolua_Error tolua_err;
  if (!tolua_isboolean(tolua_S,2,0,&tolua_err))
   tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
#endif
  G3CS_Profiling = ((bool)  tolua_toboolean(tolua_S,2,0))
;
 return 0;
}
#endif //#ifndef TOLUA_DISABLE

/* function: G3CS_SetBgColor */
#ifndef TOLUA_DISABLE_tolua_3ddcs_SetBgColor00
static int tolua_3ddcs_SetBgColor00(lua_State* tolua_S)
{
#ifndef TOLUA_RELEASE
 tolua_Error tolua_err;
 if (
     !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
     !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
     !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
     !tolua_isnoobj(tolua_S,4,&tolua_err)
 )
  goto tolua_lerror;
 else
#endif
 {
  float aR = ((float)  tolua_tonumber(tolua_S,1,0));
  float aG = ((float)  tolua_tonumber(tolua_S,2,0));
  float aB = ((float)  tolua_tonumber(tolua_S,3,0));
  {
   G3CS_SetBgColor(aR,aG,aB);
  }
 }
 return 0;
#ifndef TOLUA_RELEASE
 tolua_lerror:
 tolua_error(tolua_S,"#ferror in function 'SetBgColor'.",&tolua_err);
 return 0;
#endif
}
#endif //#ifndef TOLUA_DISABLE

/* function: G3CS_SetFgColor */
#ifndef TOLUA_DISABLE_tolua_3ddcs_SetFgColor00
static int tolua_3ddcs_SetFgColor00(lua_State* tolua_S)
{
#ifndef TOLUA_RELEASE
 tolua_Error tolua_err;
 if (
     !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
     !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
     !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
     !tolua_isnoobj(tolua_S,4,&tolua_err)
 )
  goto tolua_lerror;
 else
#endif
 {
  float aR = ((float)  tolua_tonumber(tolua_S,1,0));
  float aG = ((float)  tolua_tonumber(tolua_S,2,0));
  float aB = ((float)  tolua_tonumber(tolua_S,3,0));
  {
   G3CS_SetFgColor(aR,aG,aB);
  }
 }
 return 0;
#ifndef TOLUA_RELEASE
 tolua_lerror:
 tolua_error(tolua_S,"#ferror in function 'SetFgColor'.",&tolua_err);
 return 0;
#endif
}
#endif //#ifndef TOLUA_DISABLE

/* function: G3CS_SetResolution */
#ifndef TOLUA_DISABLE_tolua_3ddcs_SetResolution00
static int tolua_3ddcs_SetResolution00(lua_State* tolua_S)
{
#ifndef TOLUA_RELEASE
 tolua_Error tolua_err;
 if (
     !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
     !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
     !tolua_isnoobj(tolua_S,3,&tolua_err)
 )
  goto tolua_lerror;
 else
#endif
 {
  int aWidth = ((int)  tolua_tonumber(tolua_S,1,0));
  int aHeight = ((int)  tolua_tonumber(tolua_S,2,0));
  {
   G3CS_SetResolution(aWidth,aHeight);
  }
 }
 return 0;
#ifndef TOLUA_RELEASE
 tolua_lerror:
 tolua_error(tolua_S,"#ferror in function 'SetResolution'.",&tolua_err);
 return 0;
#endif
}
#endif //#ifndef TOLUA_DISABLE

/* function: G3CS_ResetCamera */
#ifndef TOLUA_DISABLE_tolua_3ddcs_ResetCamera00
static int tolua_3ddcs_ResetCamera00(lua_State* tolua_S)
{
#ifndef TOLUA_RELEASE
 tolua_Error tolua_err;
 if (
     !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
     !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
     !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
     !tolua_isnoobj(tolua_S,4,&tolua_err)
 )
  goto tolua_lerror;
 else
#endif
 {
  float aX = ((float)  tolua_tonumber(tolua_S,1,0));
  float aY = ((float)  tolua_tonumber(tolua_S,2,0));
  float aZ = ((float)  tolua_tonumber(tolua_S,3,0));
  {
   G3CS_ResetCamera(aX,aY,aZ);
  }
 }
 return 0;
#ifndef TOLUA_RELEASE
 tolua_lerror:
 tolua_error(tolua_S,"#ferror in function 'ResetCamera'.",&tolua_err);
 return 0;
#endif
}
#endif //#ifndef TOLUA_DISABLE

/* function: G3CS_SetLightPos */
#ifndef TOLUA_DISABLE_tolua_3ddcs_SetLightPos00
static int tolua_3ddcs_SetLightPos00(lua_State* tolua_S)
{
#ifndef TOLUA_RELEASE
 tolua_Error tolua_err;
 if (
     !tolua_isnumber(tolua_S,1,0,&tolua_err) ||
     !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
     !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
     !tolua_isnoobj(tolua_S,4,&tolua_err)
 )
  goto tolua_lerror;
 else
#endif
 {
  float aX = ((float)  tolua_tonumber(tolua_S,1,0));
  float aY = ((float)  tolua_tonumber(tolua_S,2,0));
  float aZ = ((float)  tolua_tonumber(tolua_S,3,0));
  {
   G3CS_SetLightPos(aX,aY,aZ);
  }
 }
 return 0;
#ifndef TOLUA_RELEASE
 tolua_lerror:
 tolua_error(tolua_S,"#ferror in function 'SetLightPos'.",&tolua_err);
 return 0;
#endif
}
#endif //#ifndef TOLUA_DISABLE

/* Open function */
TOLUA_API int tolua_3ddcs_open (lua_State* tolua_S)
{
 tolua_open(tolua_S);
 tolua_reg_types(tolua_S);
 tolua_module(tolua_S,NULL,1);
 tolua_beginmodule(tolua_S,NULL);
  tolua_variable(tolua_S,"Display_Grid",tolua_get_Display_Grid,tolua_set_Display_Grid);
  tolua_variable(tolua_S,"Display_Axis",tolua_get_Display_Axis,tolua_set_Display_Axis);
  tolua_variable(tolua_S,"ColorDepth",tolua_get_ColorDepth,tolua_set_ColorDepth);
  tolua_variable(tolua_S,"FullScreen",tolua_get_FullScreen,tolua_set_FullScreen);
  tolua_variable(tolua_S,"SplineWidth",tolua_get_SplineWidth,tolua_set_SplineWidth);
  tolua_variable(tolua_S,"SplineDetail",tolua_get_SplineDetail,tolua_set_SplineDetail);
  tolua_variable(tolua_S,"Subdivisions",tolua_get_Subdivisions,tolua_set_Subdivisions);
  tolua_variable(tolua_S,"Mouse3D_XYSensitivity",tolua_get_Mouse3D_XYSensitivity,tolua_set_Mouse3D_XYSensitivity);
  tolua_variable(tolua_S,"Mouse3D_ZSensitivity",tolua_get_Mouse3D_ZSensitivity,tolua_set_Mouse3D_ZSensitivity);
  tolua_variable(tolua_S,"Mouse3D_RotateSensitivity",tolua_get_Mouse3D_RotateSensitivity,tolua_set_Mouse3D_RotateSensitivity);
  tolua_variable(tolua_S,"Wiimote_NunchukRotateSensitivity",tolua_get_Wiimote_NunchukRotateSensitivity,tolua_set_Wiimote_NunchukRotateSensitivity);
  tolua_variable(tolua_S,"Wiimote_NunchukNoiseLevel",tolua_get_Wiimote_NunchukNoiseLevel,tolua_set_Wiimote_NunchukNoiseLevel);
  tolua_variable(tolua_S,"Mouse3D_UseNormal",tolua_get_Mouse3D_UseNormal,tolua_set_Mouse3D_UseNormal);
  tolua_variable(tolua_S,"Wiimote_DepthNoiseReduction",tolua_get_Wiimote_DepthNoiseReduction,tolua_set_Wiimote_DepthNoiseReduction);
  tolua_variable(tolua_S,"Wiimote_NoiseFilterIterations",tolua_get_Wiimote_NoiseFilterIterations,tolua_set_Wiimote_NoiseFilterIterations);
  tolua_variable(tolua_S,"Wiimote_IRSensitivity",tolua_get_Wiimote_IRSensitivity,tolua_set_Wiimote_IRSensitivity);
  tolua_variable(tolua_S,"Wiimote_MinDepth",tolua_get_Wiimote_MinDepth,tolua_set_Wiimote_MinDepth);
  tolua_variable(tolua_S,"Wiimote_DepthSensitivity",tolua_get_Wiimote_DepthSensitivity,tolua_set_Wiimote_DepthSensitivity);
  tolua_variable(tolua_S,"Wiimote_ZoomSensitivity",tolua_get_Wiimote_ZoomSensitivity,tolua_set_Wiimote_ZoomSensitivity);
  tolua_variable(tolua_S,"Profiling",tolua_get_Profiling,tolua_set_Profiling);
  tolua_function(tolua_S,"SetBgColor",tolua_3ddcs_SetBgColor00);
  tolua_function(tolua_S,"SetFgColor",tolua_3ddcs_SetFgColor00);
  tolua_function(tolua_S,"SetResolution",tolua_3ddcs_SetResolution00);
  tolua_function(tolua_S,"ResetCamera",tolua_3ddcs_ResetCamera00);
  tolua_function(tolua_S,"SetLightPos",tolua_3ddcs_SetLightPos00);
 tolua_endmodule(tolua_S);
 return 1;
}


#if defined(LUA_VERSION_NUM) && LUA_VERSION_NUM >= 501
 TOLUA_API int luaopen_3ddcs (lua_State* tolua_S) {
 return tolua_3ddcs_open(tolua_S);
};
#endif

